package com.ruoyi.project.biz.dao;

import com.ruoyi.project.biz.entity.FlowInstDO;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.Date;
import java.util.List;

/**
 * 流程实例表(FlowInst)表数据库访问层
 *
 * @author qingsong
 */
public interface FlowInstDao extends JpaRepository<FlowInstDO, Long> {
    Page<FlowInstDO> findAllByCreateTimeBetween(Date beginTime, Date endTime, Pageable pageable);
    Page<FlowInstDO> findAllByUserId(Long userId, Pageable pageable);
}
